<template>
  <div class="list">
    <div class="list-li" v-for="(item, index) of list" :key="index">
      <div class="list-title">{{ item.title }}</div>
      <div v-if="item.children" class="list-chilren"><detail-list :list="item.children"></detail-list></div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DetailList',
  props: {
    list: Array,
    imgList: Array
  }
}
</script>

<style lang="stylus" scoped>
.list-li
  width 100%
  padding-left 0.5rem
  line-height 1rem
  text-align left
  float left
  .list-title
    width 100%
    float left
    border-bottom #EAEAEA solid 0.05rem
</style>
